package com.invexer.baosteel.cashflow {
import com.invexer.baosteel.cashflow.mvc.controller.init.CashflowStartupBootstrapCMD;
import com.invexer.common.constant.ContextCommandConst;
import com.invexer.common.puremvc.patterns.facade.InvexerSimpleFacadeBase;

import org.as3commons.logging.ILogger;
import org.as3commons.logging.LoggerFactory;

public class CashflowFacade extends InvexerSimpleFacadeBase {
	private static var logger:ILogger = LoggerFactory.getClassLogger(CashflowFacade);

	public function CashflowFacade(key:String){
		super(key);
	}

	public static function  getInstance( key:String="CashflowFacade") : CashflowFacade {
		logger.info("CashflowFacade.getInstance: " + key)

		if(!instanceMap[key])
			instanceMap[key] = new CashflowFacade(key);
		return instanceMap[ key ] as CashflowFacade;
	}

	public function startup(context:Object):void{
		registerCommand(ContextCommandConst.ContextStartupBootstrapCMD, CashflowStartupBootstrapCMD);
		sendNotification( ContextCommandConst.ContextStartupBootstrapCMD, {
			appConfigPath:"baosteel-config.json",
			context:context
		} );
		removeCommand(ContextCommandConst.ContextStartupBootstrapCMD);
	}
	
	



}
}